package com.competition.web.admin.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.dao.base.IBaseMapper;
import com.competition.web.entity.User;



@Mapper
public interface UserMapper extends IBaseMapper<User> {
	/**
	 * 根据用户数据获取ids
	 * @param ids
	 * @return
	 */
	List<User> getDataByUserIds(@Param("ids") Integer[] ids);
	
	public User getChainSign(@Param("id") int id);
	
	public List<User> getChainSigns(@Param("ids") Integer[] ids);
	
	/**
	 * 获取用户列表
	 * @return
	 */
	List<User> getUserListByStatus();
	
	List<User> getUserIdsByUserName(@Param("userName") String userName);
	
	/**
	 * 根据商品数据获取用户数据
	 * @param ids
	 * @return
	 */
	List<User> getDataByMarket(@Param("ids") Integer[] ids);
	
	<S> List<S> getStatisticsUser(
		@Param("startTime") long startTime,
		@Param("endTime") long endTime,
		@Param("startTimeByYesterday") long startTimeByYesterday,
		@Param("endTimeYesterday") long endTimeYesterday,
		@Param("startTimeByStartMonth") long startTimeByStartMonth,
		@Param("endTimeYesterdayByEndMonth") long endTimeYesterdayByEndMonth
	);
}